local method=ngx.req.get_method()

if method == "POST"  then
   if ngx.var.uri=="/articles" then
       CCcount = 1
       CCseconds = 3
       local token = getClientIp().."blacklisturl" -- fingerprints 
       local limit = ngx.shared.limit
       local req,_ = limit:get(token)
       if req then
           if req > CCcount then
                log('POST',ngx.var.uri,"-","issued articles api")
                ngx.exit(200)
               return true
           else
                limit:incr(token,1)
           end
       else
           limit:set(token,1,CCseconds)
       end
   end
end
